<?php
namespace Api\Controller;
use Think\Controller;
class ContestsController extends Controller {
    public function getContests(){

        // $m_id = $_GET['m_id'];

        $contest = M('contest');
        $data = $contest -> order("contest_id")->select();

        echo json_encode($data);
         echo "<br>";

    }
}
?>